<?php

namespace app\common\model;

/**
 * 页面模型
 */
class Pagepath
{
    
    // 类型
    const TYPE_COMMON = 1; // 正常
    const TYPE_DETAIL = 2; // 详情类型页面
    const TYPE_CUSTOM = 3; // 自定义页面

    public static function getPageList()
    {
        return [
            [
                'id'            => 15,
                'name'          => '自定义',
                'path'          => '',
                'target_type'   => self::TYPE_CUSTOM,
                'target_key'    => 'id',
            ],
            [
                'id'            => 16,
                'name'          => '资讯管理',
                'path'          => '/pages/my/new_detail/index',
                'target_type'   => self::TYPE_DETAIL,
                'target_key'    => 'id',
            ],
            [
                'id'            => 3,
                'name'          => '活动管理',
                'path'          => '/pages/activity/detail/index',
                'target_type'   => self::TYPE_DETAIL,
                'target_key'    => 'id',
            ],
            [
                'id'            => 15,
                'name'          => '公告管理',
                'path'          => '/pages/my/noticeDetail/index',
                'target_type'   => self::TYPE_DETAIL,
                'target_key'    => 'id',
            ],
            [
                'id'            => 6,
                'name'          => '会员注册',
                'path'          => '/pages/register/index',
                'target_type'   => self::TYPE_COMMON,
                'target_key'    => 'id',
            ],
            [
                'id'            => 8,
                'name'          => '名片详情',
                'path'          => '/pages/card/index2',
                'target_type'   => self::TYPE_DETAIL,
                'target_key'    => 'id',
            ],
            [
                'id'            => 9,
                'name'          => '问卷调查详情',
                'path'          => '/pages/my/read_detail/read_detail',
                'target_type'   => self::TYPE_DETAIL,
                'target_key'    => 'id',
            ],
            [
                'id'            => 10,
                'name'          => '个人中心',
                'path'          => '/pages/my/index',
                'target_type'   => self::TYPE_COMMON,
                'target_key'    => 'id',
            ],
            [
                'id'            => 11,
                'name'          => '消息通知列表',
                'path'          => '/pages/my/notice/index',
                'target_type'   => self::TYPE_COMMON,
                'target_key'    => 'id',
            ],
            [
                'id'            => 12,
                'name'          => '消息通知详情',
                'path'          => '/pages/my/notice_detail/index',
                'target_type'   => self::TYPE_DETAIL,
                'target_key'    => 'id',
            ],
            [
                'id'            => 13,
                'name'          => '有人找我',
                'path'          => '/pages/my/find_me/index',
                'target_type'   => self::TYPE_COMMON,
                'target_key'    => 'id',
            ],
            [
                'id'            => 14,
                'name'          => '企业介绍',
                'path'          => '/pages/entIntroduction/entIntroduction',
                'target_type'   => self::TYPE_COMMON,
                'target_key'    => 'id',
            ],
        ];
    }
}
